package com.sharing.domain;

import lombok.Data;

/**
 * @author MingTian
 * @version 1.0
 * @description TODO
 * @date 2023/4/3 21:06
 */
@Data
public class ProductionLike {
    /**
     * 主键
     */
    private Integer id;

    /**
     * 点赞用户Id
     */
    private Integer userId;

    /**
     * 被点赞的作品Id
     */
    private Integer productionId;

    /**
     * 开始关注的时刻
     */
    private String createDate;

    public ProductionLike() {
    }

    public ProductionLike(Integer userId, Integer productionId) {
        this.userId = userId;
        this.productionId = productionId;
    }

    public ProductionLike(Integer id, Integer userId, Integer productionId) {
        this.id = id;
        this.userId = userId;
        this.productionId = productionId;
    }

    public ProductionLike(Integer id, Integer userId, Integer productionId, String createDate) {
        this.id = id;
        this.userId = userId;
        this.productionId = productionId;
        this.createDate = createDate;
    }

    public String toString() {
        return "UserLike{id=" + id
                + ", productionId=" + userId
                + ", productionId=" + productionId
                + ", createDate=" + createDate
                + "}";
    }
}
